/**
 * 
 */
package co.fitstart.mobile.service;

import java.util.List;

import co.fitstart.entity.user.User;
import co.fitstart.entity.user.UserAddress;

/**
 * @author Guangli Yan
 *
 */
public interface UserAddressService {

	/**
	 * @param user
	 * @return
	 */
	public List<UserAddress> listUserAddress(User user);

	/**
	 * @param addressId
	 */
	public void validateUserAddress(Long addressId);

	/**
	 * @param user
	 */
	public UserAddress loadUserDefaultAddress(User user);

	/**
	 * @param id
	 */
	public UserAddress load(Long id);

	/**
	 * @param user
	 * @param userAddress
	 * @return
	 */
	public Integer create(User user, UserAddress userAddress);

	/**
	 * @param id
	 */
	public void delete(Long id);

	/**
	 * @param address
	 */
	public void update(UserAddress address);

	/**
	 * @param user
	 * @param address
	 */
	public void edit(User user, UserAddress address);

	/**
	 * @param user
	 * @param id
	 */
	public void pretermit(User user, Long id);
	
	
}
